const { version } = require('./package.json');
const config = require('./src/config/config');

const swaggerDef = {
  openapi: '3.0.0',
  info: {
    title: '健康类小程序 API文档',
    version,
    description: '健康类小程序后端API文档',
    license: {
      name: 'MIT',
    },
  },
  servers: [
    {
      url: `http://localhost:${config.port}/api`,
      description: '开发服务器',
    },
  ],
};

module.exports = swaggerDef; 